package cn.zymall.massage;

import cn.zymall.common.model.ShortMessage;
import cn.zymall.massage.service.ShortMessageService;
import org.apache.commons.lang3.concurrent.BasicThreadFactory;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;

/**
 * @ClassName: MassageApplication
 * @Description: TODO
 * @author: 欧泽昌
 * @date: 2020/8/24 9:05
 * @version: V1.0
 */
@MapperScan("cn.zymall.massage.mapper")

@ComponentScan("cn.zymall.common.controller")
@ComponentScan("cn.zymall.common.model")
@ComponentScan("cn.zymall.common.config.druid")
@ComponentScan("cn.zymall.common.config.myBatisPlus")
@ComponentScan("cn.zymall.common.config.redis")
@ComponentScan("cn.zymall.common.utils")
@ComponentScan("cn.zymall.common.config.cross")
@ComponentScan("cn.zymall.massage")
@EnableEurekaClient
@EnableFeignClients("cn.zymall.common.feign")
@ComponentScan("cn.zymall.common.config.feign")
@EnableScheduling//开启定时任务
@SpringBootApplication
public class MassageApplication {
	@Autowired
	static ShortMessageService shortMessageService;
	public static void main(String[] args) {
		SpringApplication.run(MassageApplication.class,args);
	}


}
